<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
<div class="content-wrap">
    <div class="wrapper" style="bottom: 50px;">
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#"   onclick="loadDiv('rigthCenterDiv','${ctx}/nurse/newbornRec/newBornHosList?vistIdOfMother=${newbornRec.vistIdOfMother}')">新生儿住院列表</a>
            </li>
            <li>
                <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/nurse/newbornRec/getInHosInfo?vistIdOfMother=${newbornRec.vistIdOfMother}&patientIdOfMother=${newbornRec.patientIdOfMother}&motherInpNo=${newbornRec.motherInpNo}')">新生儿住院添加</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">

                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>姓名</th>
                            <th>床号</th>
                            <th>性别</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="newbornRec">
                        <tr>
                            <input type="hidden"  value="${newbornRec.vistIdOfMother}">
                            <td>${newbornRec.name}</td>
                            <td>${newbornRec.patVisit.bedNo}</td>
                            <td>${fns:getDictLabel(newbornRec.sex ,'SEX_DICT' ,'' )}

                            </td>
                            <td>
                                <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/nurse/newbornRec/getInHosInfo?id=${newbornRec.id}')" class="btn btn-success btn-xs">修改</a>
                            </td>
                        </tr>
                        </c:forEach>

                    </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>
        </section>
    </div>
</div>